package com.hdax.dm.controller;

import com.hdax.dm.dto.getTimePlanDto;
import com.hdax.dm.service.DmSchedulerService;
import com.hdax.dm.utils.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/scheduler")
public class GetTimePlanController {

    @Autowired
    private DmSchedulerService getTimePlanService;

    @PostMapping("desc/getTimePlan")
    public CommonResponse<List<getTimePlanDto>> getComments(@RequestBody Map<String,Integer> params){
        return getTimePlanService.getComments(params);
    }
}
